<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="xmStockinfoList" checkbox="true" fitColumns="true" title="煤炭供销存图表信息" sortName="id" actionUrl="xmStockinfoController.do?datagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="id"  field="id"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="单位"  field="unit"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="当前年份"  field="createTime"  formatter="yyyy-MM-dd"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="去年年份"  field="lastyear"  formatter="yyyy-MM-dd"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="省份"  field="flag"  queryMode="single" dictionary="flag" query="true" width="120" ></t:dgCol>
   <t:dgCol title="当前库存"  field="currentstock"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="今年库存"  field="inventoryyear"  queryMode="group"  width="120" sortable="true"></t:dgCol>
   <t:dgCol title="去年库存"  field="inventorylastyear"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="当前日耗"  field="consumption"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="今年日耗"  field="yearConsumption"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="去年日耗"  field="lastConsumption"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="当前供给"  field="supply"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="今年供给"  field="yearSupply"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="去年供给"  field="lastSupply"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
   <t:dgDelOpt title="删除" url="xmStockinfoController.do?doDel&id={id}"  urlclass="ace_button" urlfont="fa-trash-o"/>
   <t:dgToolBar title="录入" icon="icon-add" url="xmStockinfoController.do?goAdd" funname="add" width="100%" height="100%"></t:dgToolBar>
   <t:dgToolBar title="编辑" icon="icon-edit" url="xmStockinfoController.do?goUpdate" funname="update" width="100%" height="100%"></t:dgToolBar>
   <t:dgToolBar title="查看" icon="icon-search" url="xmStockinfoController.do?goUpdate" funname="detail" width="100%" height="100%"></t:dgToolBar>
   <t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="xmStockinfoController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
<%--   <t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>--%>
  </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'xmStockinfoController.do?upload', "xmStockinfoList");
}

//导出
function ExportXls() {
	JeecgExcelExport("xmStockinfoController.do?exportXls","xmStockinfoList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("xmStockinfoController.do?exportXlsByT","xmStockinfoList");
}
 </script>
